package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.dto.Paged;

import com.molichuxing.services.infrastructure.dto.request.create.FenceExceptionCreateDto;

import com.molichuxing.services.infrastructure.dto.response.FenceExceptionDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车辆围栏异常 服务类
 * </p>
 *
 * @author
 * @since 2019-08-15
 */
public interface CarFenceExceptionService {

    /**
     *根据条件查询围栏异常信息
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     */
    Paged<FenceExceptionDto> getFenceExceptionPage(Map<String, Object> map, Integer pageNum, Integer pageSize);


    /**
     * 根据主键查询详细信息
     * @param fenceExceptionId
     * @return
     */
    FenceExceptionDto getCarsFenceExceptionDetail(Integer fenceExceptionId);

    /**
     * 创建围栏异常信息
     * @param fenceExceptionCreateDto
     * @return 主键id
     */
    Integer createCarFenceException(FenceExceptionCreateDto fenceExceptionCreateDto);


    /**
     * 删除车辆的围栏报警
     * @param carIdList
     * @return
     */
    Boolean deleteFenceData(List<Integer> carIdList);


    /**
     *获取所有得围栏异常得车辆id集合
     * @return
     */
    List<Integer> getAllCarId();
}
